@echo off
if [%1] == [] goto usage
if [%2] == [] goto usage
if [%3] == [] goto usage
if [%4] == [] goto usage
FOR /R .\ %%F IN (Proc*) DO  @echo on && SQLCMD -S %1 -U %2 -P %3 -d %4 -i %%F && echo executing %%F && @echo off
goto end
:usage
echo usage: "install_sps.bat <dbInstance> <dbUserName> <dbPassword> <dbName>"
pause
@echo on
:end
